// import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const SYSTEM: AppRouteRecordRaw = {
	path: '/sys',
	name: 'sys',
	// component: DEFAULT_LAYOUT,
	meta: {
		locale: '基础管理',
		ignoreCache: true,
		requiresAuth: true,
		icon: 'icon-settings',
		order: 2,
		roles: '*',
	},
	children: [
		{
			path: 'major',
			name: 'major',
			component: () =>
				import('@/views/system/major/index.vue'),
			meta: {
				locale: '专业管理',
				ignoreCache: true,
				requiresAuth: true,
				roles: '*',
			},
		},
		{
			path: 'role',
			name: 'role',
			component: () =>
				import('@/views/system/role/index.vue'),
			meta: {
				locale: '角色管理',
				ignoreCache: true,
				requiresAuth: true,
				roles: '*',
			},
		},
		{
			path: 'permission',
			name: 'permission',
			component: () =>
				import('@/views/system/permission/index.vue'),
			meta: {
				locale: '权限管理',
				ignoreCache: true,
				requiresAuth: true,
				roles: 'sys:permission',
			},
		},
		{
			path: 'dictType',
			name: 'dictType',
			component: () =>
				import('@/views/system/dict/type.vue'),
			meta: {
				locale: '字典类型管理',
				ignoreCache: true,
				requiresAuth: true,
				roles: 'sys:dict:type',
			},
		},
		{
			path: 'dictData',
			name: 'dictData',
			component: () =>
				import('@/views/system/dict/data.vue'),
			meta: {
				locale: '字典管理',
				ignoreCache: true,
				requiresAuth: true,
				roles: 'sys:dict:data',
			},
		},
		{
			path: 'loginlogs',
			name: 'loginlogs',
			component: () =>
				import('@/views/system/logs/login.vue'),
			meta: {
				locale: '登录日志',
				ignoreCache: true,
				requiresAuth: true,
				roles: 'sys:logs',
			},
		},
		{
			path: 'operlogs',
			name: 'operlogs',
			component: () =>
				import('@/views/system/logs/oper.vue'),
			meta: {
				locale: '操作日志',
				ignoreCache: true,
				requiresAuth: true,
				hideInMenu: true,
				roles: '*',
			},
		},
	],
};

export default SYSTEM;